<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>新博客</title>
	<link href="<?php echo  base_url();?>public/css/bootstrap.min.css" rel="stylesheet">
	<link href="<?php echo  base_url();?>public/css/bootstrap-theme.min.css" rel="stylesheet">
	<link href="<?php echo  base_url();?>public/css/style.css" rel="stylesheet">
</head>
<body>
	<?php $this->load->view("nav");?>
	<div class="container-fulied">
		<img class="mb5" src="<?php echo base_url();?>public/img/bg1.jpg ?>">
	</div>
	<div class="container">
		<div class="row">
			<div class="col-md-8">
				<?php foreach ($articles as $b) {?>
					<div class="item">
						<p>
							<a href="<?php echo base_url().'index.php/article/view/'.$b->id?>"><?php echo $b->title ?></a>
							<span class="pull-right"><?php echo $b->view?>人浏览</span>
						</p>
						<div class="item_body mt5">
							<img class="fl img-thumbnail mr5" src="<?php echo base_url().'public/'.$b->img ?>">
							<p><?php echo $b->desc ?></p>
							<p class="time"><span class="mr5 glyphicon glyphicon-time"></span><?=date('Y-m-d',$b->create_time)?></p>
							<a href="<?php echo base_url().'index.php/article/view/'.$b->id?>" class="viewall btn btn-success">阅读全文>></a>
						</div>
					</div>
					<hr/>
				<?php
				}
				?>
			</div>
			<div class="col-md-4">
				<iframe name="sinaWeatherTool" src="http://weather.news.sina.com.cn/chajian/iframe/weatherStyle30.html?city=%E5%90%88%E8%82%A5" width="200" height="120" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
			</div>
		
		</div>
	</div>						
	</div>	
</body>
</html>